﻿using UnityEngine;

namespace ECSData
{
    /// <summary>
    /// unity实体组件
    /// </summary>
    struct HelloWorldEntity
    {
        public Transform transform;
        public MeshRenderer render;
        public HelloWorldComponentData helloWorldComponentData;
        public Test test;
    }


    /// <summary>
    /// UserData自定义数据类
    /// </summary>
    public class MyUserData
    {
        public string name;
        public int age;
        public bool sex;
        public override string ToString()
        {
             return string.Format("name:{0}  age:{1} sex:{2}",name,age, sex ? "男" : "女");
        }
    }
}